#include "../stack.h"

#include <stdio.h>

int main()
{
    struct stack_s* stack = stack_new(4, sizeof(int));
    int a = 3;
    int* pa = NULL;
    pa = stack_pop(stack);
    if(NULL == pa)
    {
        printf("pa is NULL\n");
    }
    else
    {
        printf("pa is %d\n", *pa);
    }
    stack_push(stack, &a);
    pa = stack_pop(stack);
    if(NULL == pa)
    {
        printf("pa is NULL\n");
    }
    else
    {
        printf("pa is %d\n", *pa);
    }
    
    return 0;
}
